package io.plus.server;

import io.plus.engine.pulse.Configuration;
import io.plus.server.store.Store;
import lombok.Data;


@Data
public class UserConfiguration {
    /**
     * IP地址
     */
    protected String bindIp;
    /**
     * 监听端口
     */
    protected Integer bindPort;
    /**
     * 心跳包发送时长heartbeatTimeout/2
     */
    protected long heartbeatTimeout = 0;
    /**
     * 全局群组上下文;
     */
    protected Configuration configuration;

    /**
     * 用户消息持久化助手;
     */
    protected Store store;
    /**
     * 默认的接收数据的buffer size
     */
    protected long readBufferSize = 1024 * 2;

    public UserConfiguration(String bindIp, Integer bindPort) {
        this.bindIp = bindIp;
        this.bindPort = bindPort;
    }


}
